/* nixonFTP
 * FTP client version 0.1
 * Copyright (C) 2010 NIXON Development Corporation.
 * All rights reserved.
 * http://members.shaw.ca/nixon.com
*/

package nixonftp.ui;

import java.awt.Component;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JScrollPane;

/**
 *
 * @author Billy
 */
public class NXScrollPane extends JScrollPane {
	public NXScrollPane(Component e) {
		super(e);
		//setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
		setBorder(BorderFactory.createEmptyBorder());
		setPreferredSize(new Dimension(500, 200));
		setMinimumSize(new Dimension(0, 32));
	}

	public NXScrollPane(Component e, int width) {
		super(e);
		setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
		setPreferredSize(new Dimension(width, 32));
		setMaximumSize(new Dimension(width, 9999));
		setMinimumSize(new Dimension(width, 16));
		setBorder(BorderFactory.createEmptyBorder());
	}
}
